home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pru_sectorsoff.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  49 lines

  1. # Jones 3D Cog Script
  2. #
  3. # PRU_SectorsOff.cog
  4. #
  5. # Turns off sector adjoins as you move past them.
  6. #
  7. # [GGJ]
  8. #
  9. # (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
  10. #
  11. # ========================================================================================
  12.  
  13. symbols
  14.  
  15. message        entered
  16. message        startup
  17.  
  18. thing          player        local
  19.  
  20. sector        CurrentSector0        linkid=1
  21. sector        CurrentSector1        linkid=1
  22. sector        FarSector0
  23. sector        FarSector1
  24. sector        FarSector2
  25. sector        FarSector3
  26. sector        FarSector4
  27.  
  28. end
  29.  
  30. # ========================================================================================
  31.  
  32. code
  33. startup:
  34.     player = GetLocalPlayerThing();
  35.     return;
  36.  
  37. entered:
  38. if (GetSourceRef() != player) return;
  39. if (GetSenderID() != 1) return;
  40.  
  41. if (FarSector0 >= 0) SectorAdjoins(FarSector0, 0);
  42. if (FarSector1 >= 0) SectorAdjoins(FarSector1, 0);
  43. if (FarSector2 >= 0) SectorAdjoins(FarSector2, 0);
  44. if (FarSector3 >= 0) SectorAdjoins(FarSector3, 0);
  45.  
  46. return;
  47.     
  48. end
  49.